<!doctype html>
<html>

<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<title>API测试结果日志</title>
<link rel="stylesheet" href="../css/edit.css">
<link rel="stylesheet" href="../css/main.css">
<link rel="stylesheet" href="../css/bootstrap.css" type="text/css" media="all">
<script type="text/javascript" src="../lib/jquery/3.4.1/jquery.min.js"></script>
<script type="text/javascript" src="../lib/jquery-ui/1.9.1/jquery-ui.min.js"></script>
<script type="text/javascript" src="../lib/ajax/ajaxfileupload.js"></script>
<script type="text/javascript" src="../utility/utility.js"></script>
<script type="text/javascript" src="js/history.js"></script>
</head>

<body>
	<div class="middle" style="padding: 50px; font-size: 30px">
		<span id="itemTitle">已保存的API测试历史记录</span>
		<button class="btn" onclick="toPage('./index.html')" style="float: right; border: 2px solid #000000">返回主页</button>
		<button class="btn" onclick="returnApi()" style="float: right; border: 2px solid #000000">返回API页面</button>
	</div>
	<div style="background-color: #459df5; height: 40px;"></div>
	<div class="middle">
		<span id="infoout" style="color: red"></span>
	</div>
	<div class="middle border">
		<table class="table table-bordered table-striped" style="width: 100%">
			<thead>
				<tr>
					<th style="text-align: left; width: 200px; vertical-align: middle">当前API</th>
					<td style="text-align: left;" id="apiTitle"></td>
				</tr>
			</thead>
		</table>
		<table class="table table-bordered table-striped" style="width: 100%; margin-bottom: 0px">
			<thead>
				<tr>
					<th style="text-align: center; vertical-align: middle">日志列表</th>
				</tr>
			</thead>
		</table>
		<table class="table table-bordered table-striped" style="width: 100%">
			<thead>
				<tr>
					<th style="text-align: left; width: 150px; vertical-align: middle">日期</th>
					<th style="text-align: left; width: 150px; vertical-align: middle">Url</th>
					<th style="text-align: left;">Prompt</th>
					<th style="text-align: left;">参数</th>
					<th style="text-align: left;">文本输入</th>
					<th style="text-align: left;">结果返回</th>
					<th style="text-align: left;">耗时</th>
					<th style="text-align: center; width: 48px">删除</th>
				</tr>
			</thead>
			<tbody style="width: 100%;" id="logHolder">
				<tr>
					<td style="text-align: left; width: 200px; vertical-align: middle">2023/12/04-11:22:33</td>
				</tr>
			</tbody>
		</table>
	</div>

	<div id="popFrame" style="display: none">
		<div class="frameBase" style="width: 100%" onclick="closeFrame()"></div>
		<div class="box" style="height: 400px">
			<h3 id="frameTitle" style="text-align: center"></h3>
			<div>
				<span id="infoout2" style="color: red; text-align: center"></span>
			</div>
			<span id="frameShow" style="width: 80%; left: 10%; top: 220px; position: absolute; text-align: center">content</span><br>
			<input id="frameInput" type="text" style="width: 60%; left: 20%; top: 260px; position: absolute;">
			<button class="btn btn1" onclick="frameOk()"
				style="width: 20%; left: 20%; top: 330px; position: absolute; text-align: center">确定</button>
			<button class="btn btn1" onclick="closeFrame()"
				style="width: 20%; left: 60%; top: 330px; position: absolute; text-align: center">取消</button>
		</div>
	</div>
</body>